package o;

import android.content.Context;
import com.huawei.appgallery.forum.base.image.ForumPostImageView;
import java.io.File;

public class brl implements dmi {
    private static final String ॱ = brl.class.getSimpleName();
    private String ˊ;
    private ForumPostImageView ˋ;
    private Context ˎ;
    private brk ˏ;

    public brl(Context context, ForumPostImageView forumPostImageView, String str, brk o_brk) {
        this.ˎ = context;
        this.ˋ = forumPostImageView;
        this.ˊ = str;
        this.ˏ = o_brk;
    }

    public void run() {
        if (this.ˊ.isEmpty()) {
            bqx.ˊ(ॱ, "image url is empty!");
            return;
        }
        File ˏ = ˏ(this.ˎ, this.ˊ);
        if (ˏ == null) {
            bqx.ˊ(ॱ, "load file failed!");
        } else {
            this.ˏ.ˎ(true, ˏ);
        }
    }

    private static File ˏ(Context context, String str) {
        return eqx.ˎ(context, str);
    }
}
